package com.liujiaqi.aop;

import lombok.extern.slf4j.Slf4j;
import org.aspectj.lang.annotation.After;
import org.aspectj.lang.annotation.Aspect;
import org.aspectj.lang.annotation.Before;
import org.aspectj.lang.annotation.Pointcut;
import org.springframework.core.annotation.Order;
import org.springframework.stereotype.Component;

@Order(1)
@Slf4j
@Component
//@Aspect
public class MyAspect5 {

  @Pointcut("execution(public void com.liujiaqi.service.impl.DeptServiceImpl.update(java.lang.Integer, java.lang.String))")
  public void pt(){};

  @Before("pt()")
  public void before() {
    log.info("before ...5");
  }

  @After("pt()")
  public void after() {
    log.info("after ...5");
  }

}
